<!-- 使用mixin的组件 -->
<template>
  <div>
    <router-link to="/">
      <button>返回Home</button>
    </router-link>
    <button @click="showModal">打开弹窗</button>
    <p v-if="isShowModal">我被打开了！</p>
  </div>
</template>
<script>
import showModalMixin from '@/mixins/index.js'
export default {
  name: "Mixin",
  mixins: [showModalMixin],
}
</script>